
public class HW7_3SP1 {
	public static void main(String args[])
	   {      
	      System.out.println(min(30,20));
	      System.out.println(min(10,20,30));
	   }
	   
	   public static int min(int a, int b)
	   {
	      int min=0;
	      
	      min=a;
	      if (min>b) min=b;
	      
	      return min;
	   }
	   
	   public static int min(int a, int b, int c)
	   {
	      int min=0;
	      
	      min=a;
	      if (min>b) min=b;
	      if (min>c) min=c;
	      
	      return min;
	   }
}
